<?php
/** @var DatosAntropomorficosController $this */
/** @var DatosAntropomorficos $data */
?>
<div class="view">
                    
        <?php if (!empty($data->ninios->nombres)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('ninios_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->ninios->nombres); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->fecha)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('fecha')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->fecha, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->fecha)); ?>
                            </div>
        </div>
    
    <?php if (!empty($data->edad)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('edad')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->edad); ?>
            </div>
        </div>

        <?php endif; ?>

        <?php endif; ?>
                
        <?php if (!empty($data->talla)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('talla')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->talla); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->peso)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('peso')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->peso); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->imc)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('imc')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->imc); ?>
            </div>
        </div>

        <?php endif; ?>
    </div>